package com.example.springboot01.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot01.entity.Class;
import com.example.springboot01.req.PageQueryReq;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface ClassService extends IService<Class> {

    public List<Class> queryByProfessor(Integer pId);

    boolean removeClass(Integer id);

    IPage<Class> getPage(PageQueryReq req, HttpSession session);

    public List<Class> listWithProfessor();
}
